#!/usr/bin/env bash
ver=v0.01
# 2022/11/13
echo ${ver}

########## BEGIN ###########
RED=$(printf '\033[31m')
GREEN=$(printf '\033[32m')
YELLOW=$(printf '\033[33m')
BLUE=$(printf '\033[34m')
PURPLE=$(printf '\033[35m')
CYAN=$(printf '\033[36m')
RST=$(printf '\033[m')
BOLD=$(printf '\033[1m')

read -p ${RST}即将部署${PURPLE}Tshock5${RST},按${GREEN}回车键${RST}继续，按${RED}ctrl+c${RST}取消




# 申请存储权限
FILE=~/storage
if [[ ! -f "$FILE" ]]; then
    clear
    printf "检测到$RED $FILE $RST不存在，即将申请$GERRN存储权限$RST！"
    echo "正在申请存储权限，请点击同意"
    echo "正在申请存储权限，请点击同意"
    echo "正在申请存储权限，请点击同意"
    termux-setup-storage
    read -p "同意完了按回车继续 "
fi

echo "存储权限已经尝试获取，即将继续"



